<?php
/**
 * CreateTime: 2022/7/7 10:54
 */

namespace App\Models\System;

use App\Consts\TableConsts\TableConsts;
use App\Models\BaseModel;

class ConfigModel extends BaseModel
{
    protected $table = TableConsts::CY_SYSTEM_CONFIG;

    protected $fillable = [
        'dingTalkUploadToDingPanUnionid'
    ];

    public function getConfigByKey($key,$select = ["*"]){
        return $this->select($select)->where('key',$key)->first();
    }



}